package com.ivanceras.shared.util;

public class Configuration {


	public static String baseDirectory = "/home/lee/opensource/ivanceras-erp";
	
	public static String dbPackage = "com.ivanceras.server.db";
	public static String sharedDbPackage = "com.ivanceras.shared.db";
	public static String daopackageName = "com.ivanceras.shared.dao";
	public static String metaDataPackageName = "com.ivanceras.shared.meta";
	public static String bopackageName = "com.ivanceras.shared.bo";
	public static String mapperpackageName = "com.ivanceras.shared.mapper";

	public static String daodirectory = baseDirectory+"/appengine/src/"+packageToDirectory(daopackageName);
	public static String metaDataDirectory = baseDirectory+"/appengine/src/"+packageToDirectory(metaDataPackageName);
	public static String bodirectory = baseDirectory+"/appengine/src/"+packageToDirectory(bopackageName);
	public static String mapperdirectory = baseDirectory+"/appengine/src/"+packageToDirectory(mapperpackageName);
	
	public static String applicationDictionarySchema = "appd";
	public static String applicationDictionaryBaseDirectory = baseDirectory+"/src";
	public static String appDdaodirectory = applicationDictionaryBaseDirectory+"/"+packageToDirectory(daopackageName);
	public static String appDmetaDataDirectory = applicationDictionaryBaseDirectory+"/"+packageToDirectory(metaDataPackageName);
	public static String appDbodirectory = applicationDictionaryBaseDirectory+"/"+packageToDirectory(bopackageName);
	public static String appDmapperdirectory = applicationDictionaryBaseDirectory+"/"+packageToDirectory(mapperpackageName);
	public static String generatedDataDirectory = baseDirectory+"/gen/data/";
	public static String generatedDataFile = "ivanceras_data.xml";

	
	public static String dbType = "postgresql";
	public static String dbHost = "localhost";
	public static String dbPort = "5432";
	public static String dbName = "ads2.1";
	public static String dbUser = "adcookie";
	public static String dbPassword = "Xxie$cndhE";
	public static String dbSchema = "ads";
	public static Boolean enableCache = false;
	public static String daoClass = "com.ivanceras.shared.db.DAO";
	
	public final static String etcCustomConfigurationFile = "/etc/ivanceras/ivanceras.properties";
	
	private static String packageToDirectory(String packageName){
		return packageName.replace(".", "/");
	}
}
